<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>指尖金融</title>
<link href="../../../css/common.css" type="text/css" rel="stylesheet">
<link href="../../../css/base.css" type="text/css" rel="stylesheet">
<link href="clientManage.css" type="text/css" rel="stylesheet">
<link href="../../../res/png/icon.png" rel="shortcut icon" />
<link rel="stylesheet" type="text/css" href="../../../js/My97DatePicker/skin/WdatePicker.css" />
<link rel="stylesheet" type="text/css" href="./clientAuthentication.css" />

<link href="../client/financeSituation/css/jquery-tablesorter-my.css" type="text/css" rel="stylesheet">
<link href="../client/financeSituation/css/tablesorter-yirun.css" type="text/css" rel="stylesheet">
<link href="../client/financeSituation/css/scrollbar-yirun.css" type="text/css" rel="stylesheet">

</head>

<body>
	<div class="wrapper">
		<!-- 顶部菜单栏 -->
		<div id="header" class="header"></div>
		<div class="main" id="main">
			<!-- 左侧菜单栏 -->
			<div id="leftMenu" class="left"></div>
			<div class="pages">
				<div class="table-section none page" id="searchEnterprise">
					<p class="table-head">
						<label class="table-title">当前位置:企业用户管理</label>
					</p>
					<p class="table-search">
						<label class="registerTime">注册时间：</label> <input
							class="field-input Wdate FromTime" type="text"
							id="publishFromTime" name="createDateTimeBegin"
							placeholder="请输入时间" onFocus="WdatePicker({})" /> <input
							class="field-input Wdate ToTime" type="text" id="publishToTime"
							name="createDateTimeEnd" placeholder="请输入时间"
							onFocus="WdatePicker({minDate:$('#publishFromTime').val()})" /> <label
							class="phoneNum">手机号码：</label> <input class="input-phoneNum"
							type="text" placeholder="请输入手机号码" name="mobile" id="Entmobile" />
						<label class="enterpriseName">企业名称：</label> <input
							class="input-enterpriseName" type="text" placeholder="请输入企业名称"
							name="enterpriseName" id="EntenterpriseName" /> <br /> <br />

						<!--<label class="registerTime">注册时间：</label>
							<input class="field-input Wdate FromTime" type="text" name="" placeholder="请输入时间" onFocus="WdatePicker({})" />
							<input class="field-input Wdate ToTime"   type="text"   name=""  placeholder="请输入时间"  onFocus="WdatePicker({minDate:$('#publishFromTime').val()})"/>-->
						<label>业务经理：</label> <input style="width: 198px;"
							class="input-phoneNum" type="text" placeholder="业务经理"
							name="followPerson" /> <label class="enterpriseName">剩余天数：</label>
						<input num="1" style="width: 177px; height: 30px;" type="text" placeholder="剩余天数" name="leftTime" /> 
						
						<label style="margin-left: 16px;" class="enterpriseName">敞口余额(万元)：</label>
						<input num="1" style="width: 93px; height: 30px;" type="text" name="alreadyCreditStart" /> -
						<input num="1" style="width: 93px; height: 30px;" type="text" name="alreadyCreditEnd" />
						
						<br /> <label class="legalPerson">法人姓名：</label>
						<input class="input-legalPerson" type="text" name="legalPerson"
							id="EntlegalPerson" /> <label class="isApproveLabel">企业状态：</label>
						<select class="isApprove" name="state" id="Entstate">
							<option value="0">全部</option>
							<option value="1">有效</option>
							<option value="2">禁用</option>
						</select> <label class="status">认证状态：</label> <select class="sel-status"
							name="auditState" id="EntauditState">
							<option value="0">全部</option>
							<option value="1">待审核</option>
							<option value="2">已通过</option>
							<option value="3">未通过</option>
						</select>
						<br /><br />
						<label>审批状态：</label> <select class="sel-status" name="finalState">
							<option value="">全部</option>
							<option value="1">业务经理审核</option>
							<option value="18">业务总监审核</option>
							<option value="3">风控审核</option>
							<option value="4">风控领导审核</option>
							<option value="20">副总经理审核</option>
							<option value="12">总经理审核</option>
							<option value="18">风控批复</option>
							<option value="17">市场部确认</option>
							<option value="9">计财部确认</option>
							<option value="5">运营部确认</option>
						</select>
						<button class="table-search-button" style="margin-left: 20px;">查询</button>
						<a href="/finance/api/v1.0/exportEnterpriseInfo.json?enterpriseType=0" target="_blank" class="export">导出</a>
					</p>
					
					<table class="table" id="enterpriseListTable">
						<thead>
							<tr>
								<th>企业名称</th>
								<th>注册时间</th>
								<th>注册手机号</th>
								<th>法人姓名</th>
								<th>业务经理</th>
								<th>授信额度</th>
								<th>敞口余额</th>
								<th>剩余余额</th>
								<th>授信剩余天数</th>
								<th>审批节点</th>
								<th>认证</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody id="enterpriseListBody">
						</tbody>
					</table>
					<script type="text/template" id="enterpriseListTpl">
						{@each datas as it}
						<tr enterpriseId="${it.enterpriseId}" enterpriseType="${it.enterpriseType}">
							<td><span style="display: inline-block; width: 14px;background-color: rgb(108,160,225);color: white;">{@if it.authentication ==3 }实{@/if}</span>${it.enterpriseName}<span class="callback">${getValueByKey(71, it.callback)}</span></td>
							<td>
								${(it.createDateTime).substr(0, 10)}
							</td>
							<td>${it.mobile}</td>
							<td>${it.legalPerson}</td>
							<td>${it.followPersons}</td>
							<td>${formatCurrency((it.creditLine*1 / 10000).toFixed(2))}万元</td>
							<td>${formatCurrency((it.creditAlready*1 / 10000).toFixed(2))}万元</td>
							<td>${formatCurrency(((it.creditLine*1 - it.creditAlready*1)/ 10000).toFixed(2))}万元</td>
							<td>${it.gradeDays}</td>
							<td>
								${getValueByKey(83, it.finalState)}
							</td>
							<td>
								${getValueByKey(18, it.auditState)}
							</td>
							<td>
								<span class="table_details_link permissionLink">详情 </span>
								<span class="table_bar">| </span>
								<span class="table_delete_btn permissionLink none permissionLink" permissionId="clientManageDelete_1">删除 </span>
								{@if it.forbidden === false}
								<span class="table_bar">| </span>
								<span class="table_forbidden_btn permissionLink none permissionLink" permissionId="clientManageForbid_1">禁用 </span>
								{@/if}
								{@if it.freeze === false}
								<span class="table_bar">| </span>
								<span class="table_freeze_btn permissionLink none permissionLink" permissionId="clientManageFreeze_1">冻结 </span>
								{@/if}
								<span class="table_bar">| </span>
								<span class="table_enable_btn permissionLink none permissionLink" permissionId="clientManageReuse_1">启用 </span>
								<span class="table_bar">| </span>
								<span class="table_sync_link permissionLink">同步 </span>
							</td>
						</tr>
						{@/each}
					</script>
					<div id="clientPagenation" class="pagerCon"></div>
				</div>
			</div>
			<div id="popdialog"></div>
		</div>
		<!-- 底部 -->
		<div id="footer" class="none footer"></div>
		<!--删除确认框-->
		<div class="dialog none" id="confirmDialog" style="width: 300px;">
			<div class="dialogTitle"></div>
			<button class="closeDiv">×</button>
			<div class="dialogContent"></div>
			<div class="footerBtn">
				<div class="dialogBtn dialogHandlerBtn radius_shadow">确定</div>
			</div>
		</div>
		<div id="fullBg"></div>
		<div id="popdialog"></div>
	</div>
	<script type="text/javascript" src="../../../js/jquery-1.11.1.min.js"></script>
	<script src="../../../component/upload/jquery.ui.widget.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../component/upload/jquery.iframe-transport.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../component/upload/jquery.fileupload.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="../../../component/layer/layer.js"></script>
	<script type="text/javascript" src="../../../js/seajs/sea.js"></script>
	<script type="text/javascript" src="../../../js/seajs/seajs-text.js"></script>
	<script type="text/javascript" src="../../../js/seajs/seajs-css.js"></script>
	<script type="text/javascript" src="../../../js/platform/config.js"></script>
	<script type="text/javascript" src="../../../js/juicer-min.js"></script>
	<script src="../../../js/ajaxfileupload.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../component/PCAS/PCASClass.js" type="text/javascript" charset="utf-8"></script>
		
	<script type="text/javascript" src="../client/financeSituation/js/jquery.tablesorter/jquery.tablesorter.combined.js"></script>
	<script type="text/javascript" src="../client/financeSituation/js/jquery.tablesorter/jquery.tablesorter.js"></script>
	<script type="text/javascript" src="../client/financeSituation/js/jquery.tablesorter/jquery.tablesorter.widgets.js"></script>
	<script type="text/javascript" src="../client/financeSituation/js/jquery.tablesorter/widget-pager.js"></script>
	<script type="text/javascript" src="../client/financeSituation/js/jquery.tablesorter/widgets/widget-scroller.js"></script>
	<!--<script type="text/javascript" src="../client/financeSituation/js/jquery-tablesorter-my.js"></script>-->
		
	<script type="text/javascript">
		seajs.use('./clientManage', function(clientManage) {
			clientManage.init();
		});
	</script>
</body>

</html>